home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / buzzmachines_massive.exe / Dev / Geoffroy Notefilter SourceCode / BuzzParameterDuration.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-05-08  |  1.2 KB  |  46 lines

  1. // BuzzParameterDuration.h: interface for the BuzzParameterDuration class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_BuzzParameterDuration_H__19CF9763_6FC9_47CC_914B_71D208757F04__INCLUDED_)
  6. #define AFX_BuzzParameterDuration_H__19CF9763_6FC9_47CC_914B_71D208757F04__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include <stdlib.h>
  13. #include <time.h>
  14. #include <math.h>
  15. #include <string.h>
  16. #include <windows.h>
  17. #include "../mdk.h"
  18. #include "BuzzParameter.h"
  19. #include "BuzzParameterUnit.h"
  20.  
  21. class BuzzParameterDuration : public BuzzParameter<word,dword>
  22. {
  23. public:
  24.     BuzzParameterDuration();
  25.     virtual ~BuzzParameterDuration();
  26.  
  27.     static word MIN_SLIDER_VALUE;
  28.     static word MAX_SLIDER_VALUE;
  29.     static word UNCHANGED_SLIDER_VALUE;
  30.     static word INIT_SLIDER_VALUE;
  31.  
  32.     virtual void compute();
  33.     virtual char const * toString(word const value);
  34.  
  35.     virtual void setUnit(byte u);
  36.     virtual void setSamplesPerTick(int n);
  37.     virtual void setSampleRate(int sampleRate);
  38.  
  39. protected:
  40.     byte unit;
  41.     int samplesPerTick;
  42.     int sampleRate;
  43. };
  44.  
  45. #endif // !defined(AFX_BuzzParameterDuration_H__19CF9763_6FC9_47CC_914B_71D208757F04__INCLUDED_)
  46.